@extends('admin.layout')
@section('title')
 订单详情
@endsection
@section('header_css')
<style type="text/css">
    .orderinfo{
        width: 150px;
        height: 35px;
        line-height: 50px;
        display: inline-block;
    }
    .orderaddress{
        width: 150px;
        height: 35px;
        line-height: 50px;
        width:100%;
        display: block;
        margin-bottom: 10px;
    }
    .label_th{
        font-size: 15px;
        font-weight: bold;
        padding-right: 5px;
    }
</style>
@endsection
@section('body')
    <div class="row">
        <div class="col-xs-12 col-md-12">
            <div class="widget">
                <div class="widget-header ">
                    <span class="widget-caption">订单详情</span>
                    <div class="widget-buttons">
                        <a  href="{{action(NAMESPACE_ADMIN.'OrderController@getIndex')}}">
                            返回
                        </a>
                        <a data-toggle="maximize" href="#">
                            <i class="fa fa-expand"></i>
                        </a>
                        <a data-toggle="collapse" href="#">
                            <i class="fa fa-minus"></i>
                        </a>
                        <a data-toggle="dispose" href="#">
                            <i class="fa fa-times"></i>
                        </a>
                    </div>
                </div>
                <div class="widget-body" style="display: block;">
                             <div role="grid" id="editabledatatable_wrapper" class="dataTables_wrapper form-inline no-footer">
                                 <div class="DTTT btn-group">
                                     <span class="orderinfo"><span class="label_th">用户名:</span>{{$orderinfo['user']['username']}}</span>
                                     <span class="orderinfo"><span class="label_th">收货人姓名:</span>{{$orderinfo['consignee']}}</span>
                                     <span class="orderinfo"><span class="label_th">订单号:</span>{{$orderinfo['order_sn']}}</span>
                                     <span class="orderinfo"><span class="label_th">订单状态:</span>{{$orderinfo['order_status']}}</span>
                                     <span class="orderinfo"><span class="label_th">发货状态:</span>{{$orderinfo['order_status']}}</span>
                                     <span class="orderinfo"><span class="label_th">支付状态:</span>{{$orderinfo['order_status']}}</span>
                                     <span class="orderinfo"><span class="label_th">联系方式:</span>{{$orderinfo['mobile']}}</span>
                                     <span class="orderinfo"><span class="label_th">配送方式:</span>{{$orderinfo['shipping_name']}}</span>
                                     <span class="orderinfo"><span class="label_th">支付方式:</span>{{$orderinfo['pay_name']}}</span>
                                     <span class="orderinfo"><span class="label_th">物流费用:</span>{{$orderinfo['shipping_fee']}}元</span>
                                     <span class="orderinfo"><span class="label_th">应付金额:</span>{{$orderinfo['order_amount']}}元</span>
                                 </div>
                                 <div id="editabledatatable_filter" class="dataTables_filter">
                                     <span class="orderaddress"><span class="label_th">收货地址:</span>{{$orderinfo['province']}}{{$orderinfo['city']}}{{$orderinfo['district']}}{{$orderinfo['address']}}</span>
                                 </div>
                             </div>
                        <table id="editabledatatable" class="table table-striped table-hover table-bordered dataTable no-footer" aria-describedby="editabledatatable_info">
                            <thead>
                            <tr role="row">
                                <th class="sorting_asc" tabindex="0" aria-controls="editabledatatable" rowspan="1" colspan="1" style="width: 259px;" aria-label="
                                                    商品名称
                                                : activate to sort column ascending">
                                商品名称
                                </th>
                                <th class="sorting" tabindex="0" aria-controls="editabledatatable" rowspan="1" colspan="1" style="width: 382px;" aria-label="
                                                     	商品缩略图
                                                : activate to sort column ascending">
                                    商品缩略图
                                </th><th class="sorting" tabindex="0" aria-controls="editabledatatable" rowspan="1" colspan="1" style="width: 173px;" aria-label="
                                                     	市场价(元)
                                                : activate to sort column ascending">
                                    市场价(元)
                                </th><th class="sorting" tabindex="0" aria-controls="editabledatatable" rowspan="1" colspan="1" style="width: 273px;" aria-label="
                                                    售卖价(元)
                                                : activate to sort column ascending">
                                    售卖价(元)
                                </th>
                                <th class="sorting" tabindex="0" aria-controls="editabledatatable" rowspan="1" colspan="1" style="width: 273px;" aria-label="
                                                    	购买件数
                                                : activate to sort column ascending">
                                    购买件数
                                </th>
                            </tr>
                            </thead>

                            <tbody>
                            @foreach($orderinfo['order_goods'] as $key => $ordergoods)
                                <tr class=" @if($key%2==0) even  @else odd @endif">
                                    <td class="center">{{$ordergoods['title']}}</td>
                                    <td class="center"><img src="{{$ordergoods['thumb']}}" width="60" height="60"/></td>
                                    <td class="center">{{$ordergoods['market_price']}}</td>
                                    <td class="center">{{$ordergoods['goods_price']}}</td>
                                    <td class="center">{{$ordergoods['goods_number']}}</td>
                                </tr>
                            @endforeach
                          </tbody>
                        </table>
                </div>
            </div>
        </div>
    </div>
@endsection